package org.zxp.designpattern.factory.abstractfactory.factory;

import org.zxp.designpattern.factory.abstractfactory.enums.FactoryType;

/**
 * @program: effectiveJava
 * @description:
 * @author: X-Pacific zhang
 * @create: 2019-08-21 10:03
 **/
public class AnimalFactory {
    public static AbstractFactory getFactory(FactoryType factoryType){
            switch (factoryType){
                case EASTBASE:
                    return new EastBaseFactory();
                case WESTBASE:
                    return new WestBaseFactory();
            }
            return null;
    }
}
